home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / swagd_f.zip / EGAVGA.SWG / 0055_Get one Char from Font.pas < prev    next >
Pascal/Delphi Source File  |  1993-08-18  |  996b  |  33 lines

  1. { Get one char table from font buffer.
  2.   Part of the Heartware Toolkit v2.00 (HTfont.PAS) for Turbo Pascal.
  3.   Author: Jose Almeida. P.O.Box 4185. 1504 Lisboa Codex. Portugal.
  4.           I can also be reached at RIME network, site ->TIB or #5314.
  5.   Feel completely free to use this source code in any way you want, and, if
  6.   you do, please don't forget to mention my name, and, give me and Swag the
  7.   proper credits. }
  8.  
  9. type
  10.   Font_Type  = array[1..4096] of byte;
  11.   Char_Type  = array[1..16] of byte;
  12.  
  13. PROCEDURE Font_Get_Char(Fnt : Font_Type;
  14.                       Char_ : byte;
  15.             var Char_Buffer : Char_Type);
  16.  
  17. { DESCRIPTION:
  18.     Get one char table from font buffer.
  19.   SAMPLE CALL:
  20.     Font_Get_Char(Font_Table,176,Char_Table);
  21.   RETURNS:
  22.     Char_Buffer : Specified char table.
  23.   NOTES:
  24.     Works in VGA only, and with 8x16 fonts }
  25.  
  26. var
  27.   P : word;
  28.  
  29. BEGIN { Font_Get_Char }
  30.   P := Succ(16 * Char_);
  31.   Move(Fnt[P],Char_Buffer,16);
  32. END; { Font_Get_Char }
  33.